import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
// 引入svg字体图标库
import '@/style/font/iconfont.js'
import Svgicon from '@/components/Svgicon.vue'
import router from '@/router'
import store from '@/store'

// 组件库引入
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

// app就是你的vue应用
const app = createApp(App)

// 注册router  store   UI库

// 注册全局组件：参数1： 组件的名字   参数2： 组件对象
app.component('svg-icon', Svgicon)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(ElementPlus)
// 注册路由
app.use(router)
app.use(store)
app.mount('#app')


